<?xml version="1.0" encoding="UTF-8"?>
<!--
    Document   : EmpresaCadastrar
    Created on : 12/02/2009, 15:50:39
    Author     : Jaime Junior
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./resources/camposDesabilitados.css" id="outputStyle3"/>
                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
                <!-- Java Script -->
                <script>
                    function hidden(){
                    document.body.style.overflow='hidden';
                }
                function mascara(o,f){
                    v_obj=o;
                    v_fun=f;
                    setTimeout("execmascara()",1);
               }
               /* Função para executar a mascara */
               function execmascara(){
                    v_obj.value=v_fun(v_obj.value);
               }
               function mvalor(v){
                    v=v.replace(/\D/g,"");//Remove tudo o que não é dígito
                    v=v.replace(/(\d)(\d{2})$/,"$1.$2");//coloca a virgula antes dos 2 últimos dígitos
                    return v;
               }
                </script>
                <title>Gerenciamento de Caminhões e Carretas</title>
            </ice:outputHead>
            <body onload="hidden();">
                <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                    <ice:form id="form1">
                        <!-- Painel Sair -->
                        <ice:panelPopup autoCentre="true" binding="#{Caminhao$CaminhaoCadastrar.painelSair}" draggable="false" id="painelSair" modal="true"
                            rendered="#{Caminhao$CaminhaoCadastrar.panelPopup1Bean.showDraggablePanel}"
                            style="height: 210px; left: 912px; right: 200px; top: 192px; bottom: 200px; position: absolute; width: 405px" visible="#{Caminhao$CaminhaoCadastrar.panelPopup1Bean.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelSairCabecalho" style="display: block; height: 30px; width: 180px">
                                    <ice:outputText id="msgSairTitulo" value="Sair"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelSairCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText id="msgPainelSair"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 18px; left: 24px; top: 24px; position: absolute; text-align: center; width: 357px" value="Tem certeza que deseja sair dessa tela?"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoSairSim_action}"
                                        binding="#{Caminhao$CaminhaoCadastrar.botaoSairSim}" id="botaoSairSim" image="/resources/botaoSim.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 30%; top: 55%; position: absolute" value="Sim"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoSairNao_action}" id="botaoSairNao"
                                        image="/resources/botaoNao.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; right: 30%; top: 55%; position: absolute" value="Não"/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <!-- Painel Consulta -->
                        <ice:panelPopup autoCentre="true" binding="#{Caminhao$CaminhaoCadastrar.painelConsulta}" draggable="false" id="painelConsulta"
                            modal="true" rendered="#{Caminhao$CaminhaoCadastrar.panelPopup1Bean2.showDraggablePanel}"
                            style="height: 210px; left: 912px; top: 216px; position: absolute; width: 405px" visible="#{Caminhao$CaminhaoCadastrar.panelPopup1Bean2.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelConsultaCabecalho" style="display: block; height: 30px; width: 250px">
                                    <ice:outputText id="msgPainelConsulta" value="Consulta Caminhão/Carreta"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelConsultaCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText binding="#{Caminhao$CaminhaoCadastrar.msgConsultaTitulo}" id="msgConsultaTitulo" style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 18px; left: 24px; top: 0px; position: absolute; text-align: center; width: 357px"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoConsultaOk_action}"
                                        binding="#{Caminhao$CaminhaoCadastrar.botaoConsultaOk}" id="botaoConsultaOk" image="/resources/botaoOk.png"
                                        immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 25%; top: 65%; position: absolute" value="OK"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoConsultaCancelar_action}" id="botaoConsultaCancelar"
                                        image="/resources/botaoCancelar.png" immediate="true" partialSubmit="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; right: 25%; top: 65%; position: absolute" value="Cancelar"/>
                                    <ice:selectInputText binding="#{Caminhao$CaminhaoCadastrar.campoBusca}" id="campoBusca"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; left: 48px; top: 48px; position: absolute"
                                        valueChangeListener="#{Caminhao$CaminhaoCadastrar.campoBusca_processValueChange}" width="309">
                                        <f:selectItems id="listaBusca" value="#{Caminhao$CaminhaoCadastrar.campoBuscaCaminhao}"/>
                                    </ice:selectInputText>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <!-- Painel Aviso -->
                        <ice:panelPopup autoCentre="true" binding="#{Caminhao$CaminhaoCadastrar.painelAviso}" draggable="false" id="painelAviso" modal="true"
                            rendered="#{Caminhao$CaminhaoCadastrar.panelPopup1Bean2.showDraggablePanel}"
                            style="height: 210px; left: 912px; top: 240px; position: absolute; width: 405px" visible="#{Caminhao$CaminhaoCadastrar.panelPopup1Bean2.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelAvisoCabecalho" style="display: block; height: 30px; width: 180px">
                                    <ice:outputText binding="#{Caminhao$CaminhaoCadastrar.msgPainelAviso}" id="msgPainelAviso" value="Aviso"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelAvisoCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText id="msgAvisoResultado"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 18px; height: 41px; left: 24px; top: 0px; position: absolute; text-align: center; width: 357px" value="Não houve resultado "/>
                                    <ice:outputText id="msgAvisoPergunta"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 18px; height: 41px; left: 24px; top: 72px; position: absolute; text-align: center; width: 357px" value="Deseja fazer outra consulta?"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoAvisoSim_action}"
                                        binding="#{Caminhao$CaminhaoCadastrar.botaoAvisoSim}" id="botaoAvisoSim" image="/resources/botaoSim.png"
                                        immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 30%; top: 65%; position: absolute" value="Sim"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoAvisoNao_action}"
                                        binding="#{Caminhao$CaminhaoCadastrar.botaoAvisoNao}" id="botaoAvisoNao" image="/resources/botaoNao.png"
                                        immediate="true" partialSubmit="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; right: 30%; top: 65%; position: absolute" value="Não"/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <!-- Painel Mensagem -->
                        <ice:panelPopup autoCentre="true" binding="#{Caminhao$CaminhaoCadastrar.painelMensagem}" draggable="false" id="painelMensagem"
                            modal="true" rendered="#{Caminhao$CaminhaoCadastrar.panelPopup1Bean3.showDraggablePanel}"
                            style="height: 210px; left: 912px; top: 264px; position: absolute; width: 405px" visible="#{Caminhao$CaminhaoCadastrar.panelPopup1Bean3.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelMensagemCabecalho" style="display: block; height: 30px; width: 180px">
                                    <ice:outputText id="msgPainelMensagem" value="Atenção"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelMensagemCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText binding="#{Caminhao$CaminhaoCadastrar.msgMensagemResultado}" id="msgMensagemResultado"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; height: 17px; left: 24px; top: 24px; position: absolute; text-align: center; width: 357px" value="Operação Efetuada Com Sucesso"/>
                                    <ice:outputText binding="#{Caminhao$CaminhaoCadastrar.msgMensagemOperacao}" id="msgMensagemOperacao" style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; height: 18px; left: 24px; top: 72px; position: absolute; text-align: center; width: 357px"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoMensagemOk_action}"
                                        binding="#{Caminhao$CaminhaoCadastrar.botaoMensagemOk}" id="botaoMensagemOk" image="/resources/botaoOk.png"
                                        immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 45%; top: 70%; position: absolute" value="Ok"/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <!-- Painel Geral -->
                        <ice:panelGroup id="painelGeral" style="height: 768px; margin-left: -512px; left: 50%; top: 0px; position: absolute; width: 1024px">
                            <!-- Imagem Fundo -->
                            <ice:graphicImage id="imagemFundo"
                                style="height: 768px; margin-left: -512px; margin-top: -384px; left: 50%; top: 50%; position: absolute; width: 1024px" value="/resources/caminhão.jpg"/>
                            <!-- Painel Conteúdo -->
                            <ice:panelLayout id="painelConteudo" layout="flow" style="font-family: 'Courier New',Courier,monospace; font-size: 14px; height: 620px; left: 2%; top: 12%; position: absolute; width: 980px; -rave-layout: grid">
                                <ice:outputText id="labelCaminhao"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 120px; top: 72px; position: absolute; text-align: right; width: 143px" value="Caminhão:"/>
                                <!-- Radio Tipo para Selecionar se é caminhão ou carreta -->
                                <ice:selectOneRadio binding="#{Caminhao$CaminhaoCadastrar.radioTipo}" id="radioTipo" partialSubmit="true"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 264px; top: 72px; position: absolute; width: 240px"
                                    value="#{Caminhao$CaminhaoCadastrar.tipoSelecionado.selectedObject}" valueChangeListener="#{Caminhao$CaminhaoCadastrar.radioTipo_processValueChange}">
                                    <f:selectItems id="selectOneRadio1selectItems" value="#{Caminhao$CaminhaoCadastrar.tipos}"/>
                                </ice:selectOneRadio>
                                <!-- Painel Carreta -->
                                <ice:panelLayout binding="#{Caminhao$CaminhaoCadastrar.painelCarreta}" id="painelCarreta" layout="flow" style="height: 214px; left: 120px; top: 120px; position: absolute; width: 813px; -rave-layout: grid">
                                    <!-- Labels -->
                                    <ice:outputText id="labelMarcaCarreta"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 0px; top: 0px; position: absolute; text-align: right; width: 142px" value="Marca:"/>
                                    <ice:outputText id="labelModeloCarreta"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 0px; top: 24px; position: absolute; text-align: right; width: 142px" value="Modelo/Tipo:"/>
                                    <ice:outputText id="labelAnoCarreta"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 0px; top: 48px; position: absolute; text-align: right; width: 142px" value="Ano:"/>
                                    <ice:outputText id="labelPlacaCarreta"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 0px; top: 72px; position: absolute; text-align: right; width: 142px" value="Placa:"/>
                                    <ice:outputText id="labelCapacidadeCarreta"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 0px; top: 144px; position: absolute; text-align: right; width: 142px" value="Capacidade:"/>
                                    <ice:outputText id="labelEixosCarreta"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 0px; top: 96px; position: absolute; text-align: right; width: 142px" value="Eixos:"/>
                                    <ice:outputText id="labelChassiCarreta"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 0px; top: 120px; position: absolute; text-align: right; width: 142px" value="Chassi:"/>
                                    <ice:outputText id="labelEmpresaCarreta"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 0px; top: 168px; position: absolute; text-align: right; width: 142px" value="Empresa:"/>
                                    <!-- Campo Marca Carreta-->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.marcaCarreta}" id="marcaCarreta" maxlength="70" partialSubmit="true"
                                        required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 142px; top: -2px; position: absolute; width: 220px"
                                        title="Digite a marca da Carreta (Ex: Random)" value="#{Carreta.marcaCarreta}"/>
                                    <!-- Campo Modelo Carreta -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.campoModeloCarreta}" id="campoModeloCarreta" maxlength="50"
                                        partialSubmit="true" required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 142px; top: 22px; position: absolute; width: 220px"
                                        title="Digite o modelo ou o tipo da Carreta (Ex: Graneleira)" value="#{Carreta.modelo}"/>
                                    <!-- Campo Ano Carreta -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.campoAnoCarreta}" id="campoAnoCarreta" maxlength="4"
                                        partialSubmit="true" required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 142px; top: 46px; position: absolute; width: 220px"
                                        title="Digite o ano da Carreta (Ex: 1990)" validator="#{Caminhao$CaminhaoCadastrar.campoAnoCarreta_validate}" value="#{Carreta.ano}"/>
                                    <!-- Campo Placa Carreta -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.placaCarreta}" id="placaCarreta" maxlength="8" partialSubmit="true"
                                        required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 142px; top: 70px; position: absolute; width: 220px"
                                        title="Digite a placa da Carreta (Ex: BBB - 2222)" validator="#{Caminhao$CaminhaoCadastrar.validateCampoUnico}" value="#{Carreta.placaCarreta}"/>
                                    <!-- Campo Eixos Carreta -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.campoEixoCarreta}" id="campoEixoCarreta" maxlength="2"
                                        partialSubmit="true" required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 142px; top: 94px; position: absolute; width: 220px"
                                        title="Digite a quantidade eixos da Carreta (Ex: 5)" validator="#{Caminhao$CaminhaoCadastrar.campoEixoCarreta_validate}" value="#{Carreta.eixos}"/>
                                    <!-- Campo Chassi Carreta -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.chassiCarreta}" id="chassiCarreta" maxlength="20" partialSubmit="true"
                                        required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 142px; top: 118px; position: absolute; width: 220px"
                                        title="Digite o número do chassi da Carreta" validator="#{Caminhao$CaminhaoCadastrar.validateCampoUnico}" value="#{Carreta.chassiCarreta}"/>
                                    <!-- Campo Capacidade Max. Carreta -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.campoCapacidadeMaxCarreta}" id="campoCapacidadeMaxCarreta"
                                        maxlength="8" onkeypress="mascara(this,mvalor);" partialSubmit="true" required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 142px; top: 142px; position: absolute; width: 220px"
                                        title="Digite a capacidade máxima da Carreta (Ex: 15.000)"
                                        validator="#{Caminhao$CaminhaoCadastrar.doubleRangeValidator1.validate}" value="#{Carreta.capacidade}"/>
                                    <!-- Combo Empresa Carreta -->
                                    <ice:selectOneMenu binding="#{Caminhao$CaminhaoCadastrar.comboEmpresaCarreta}" id="comboEmpresaCarreta" partialSubmit="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 142px; top: 166px; position: absolute; width: 220px"
                                        title="Selecione a empresa proprietária" value="#{Caminhao$CaminhaoCadastrar.empresaCarretaSelecionada.selectedObject}">
                                        <f:selectItems id="selectOneMenu1selectItems1" value="#{Caminhao$CaminhaoCadastrar.empresaCarretas}"/>
                                    </ice:selectOneMenu>
                                    <!-- Mensagens -->
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoMarcaCarreta" id="msgMarcaCarreta"
                                        infoClass="infoMessage" showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 384px; top: 0px; position: absolute; width: 285px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoModeloCarreta" id="msgModeloCarreta"
                                        infoClass="infoMessage" showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 384px; top: 24px; position: absolute; width: 285px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoAnoCarreta" id="msgAnoCarreta"
                                        infoClass="infoMessage" showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 384px; top: 48px; position: absolute; width: 430px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="placaCarreta" id="msgPlacaCarreta"
                                        infoClass="infoMessage" showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 384px; top: 72px; position: absolute; width: 285px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoEixoCarreta" id="msgEixoCarreta"
                                        infoClass="infoMessage" showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 384px; top: 96px; position: absolute; width: 430px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="chassiCarreta" id="msgChassiCarreta"
                                        infoClass="infoMessage" showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 384px; top: 120px; position: absolute; width: 285px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoCapacidadeMaxCarreta" id="msgCapacidadeCarreta"
                                        infoClass="infoMessage" showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 384px; top: 144px; position: absolute; width: 285px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="comboEmpresaCarreta" id="msgEmpresa"
                                        infoClass="infoMessage" showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 384px; top: 168px; position: absolute; width: 285px" warnClass="warnMessage"/>
                                </ice:panelLayout>
                                <!-- Painel Caminhão -->
                                <ice:panelLayout binding="#{Caminhao$CaminhaoCadastrar.painelCaminhao}" id="painelCaminhao" layout="flow" style="height: 214px; left: 72px; top: 120px; position: absolute; width: 885px; -rave-layout: grid">
                                    <!-- Labels -->
                                    <ice:outputText id="labelTaraCaminhao"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 24px; top: 144px; position: absolute; text-align: right; width: 166px" value="Capacidade:"/>
                                    <ice:outputText id="labelAnoCaminhao"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 24px; top: 48px; position: absolute; text-align: right; width: 166px" value="Ano:"/>
                                    <ice:outputText id="labelEixosCaminhao"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 24px; top: 96px; position: absolute; text-align: right; width: 166px" value="Eixos:"/>
                                    <ice:outputText id="labelChassiCaminhao"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 24px; top: 120px; position: absolute; text-align: right; width: 166px" value="Chassi:"/>
                                    <ice:outputText id="labelPlacaCaminhao"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 24px; top: 72px; position: absolute; text-align: right; width: 166px" value="Placa:"/>
                                    <ice:outputText id="labelModeloCaminhao"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 24px; top: 24px; position: absolute; text-align: right; width: 166px" value="Modelo:"/>
                                    <ice:outputText id="labelMarcaCaminhao"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 24px; top: 0px; position: absolute; text-align: right; width: 166px" value="Marca:"/>
                                    <ice:outputText id="labelProprietarioCaminhao"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 24px; top: 168px; position: absolute; text-align: right; width: 166px" value="Empresa:"/>
                                    <!-- Marca Caminhão -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.marcaCaminhao}" id="marcaCaminhao" maxlength="70" partialSubmit="true"
                                        required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 190px; top: -2px; position: absolute; width: 220px"
                                        title="Digite a marca do Caminhão (Ex: Mercedez)" value="#{Caminhao.marcaCaminhao}"/>
                                    <!-- Campo Modelo Caminhão -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.campoModelo}" id="campoModelo" maxlength="50" partialSubmit="true"
                                        required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 190px; top: 22px; position: absolute; width: 220px"
                                        title="Digite o modelo do Caminhão (Ex: 1513)" value="#{Caminhao.modelo}"/>
                                    <!-- Campo Ano Caminhão -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.campoAno}" id="campoAno" maxlength="4" partialSubmit="true"
                                        required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 190px; top: 46px; position: absolute; width: 220px"
                                        title="Digite o ano do Caminhão (EX: 1989)" validator="#{Caminhao$CaminhaoCadastrar.campoAno_validate}" value="#{Caminhao.ano}"/>
                                    <!-- Campo Placa Caminhão -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.placaCaminhao}" id="placaCaminhao" maxlength="8" partialSubmit="true"
                                        required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 190px; top: 70px; position: absolute; width: 220px"
                                        title="Digite a placa do Caminhão (Ex: AAA - 1111)" validator="#{Caminhao$CaminhaoCadastrar.validateCampoUnico}" value="#{Caminhao.placaCaminhao}"/>
                                    <!-- Campo Eixo Caminhão -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.campoEixo}" id="campoEixo" maxlength="2" partialSubmit="true"
                                        required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 190px; top: 94px; position: absolute; width: 220px"
                                        title="Digite a quantidade de eixos do Caminhão (Ex: 3)" validator="#{Caminhao$CaminhaoCadastrar.campoEixo_validate}" value="#{Caminhao.eixos}"/>
                                    <!-- Campo Chassi Caminhão -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.chassiCaminhao}" id="chassiCaminhao" maxlength="20"
                                        partialSubmit="true" required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 190px; top: 118px; position: absolute; width: 220px"
                                        title="Digite o número do chassi do Caminhão" validator="#{Caminhao$CaminhaoCadastrar.validateCampoUnico}" value="#{Caminhao.chassiCaminhao}"/>
                                    <!-- Campo Capacidade Max. Caminhão -->
                                    <ice:inputText binding="#{Caminhao$CaminhaoCadastrar.campoCapacidadeMax}" id="campoCapacidadeMax" maxlength="8"
                                        onkeypress="mascara(this,mvalor);" partialSubmit="true" required="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 190px; top: 142px; position: absolute; width: 220px"
                                        title="Digite a capacidade máxima do Caminhão (Ex: 4.000)"
                                        validator="#{Caminhao$CaminhaoCadastrar.doubleRangeValidator1.validate}" value="#{Caminhao.capacidade}"/>
                                    <!-- Combo Proprietario Caminhão -->
                                    <ice:selectOneMenu binding="#{Caminhao$CaminhaoCadastrar.comboProprietario}" id="comboProprietario" partialSubmit="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 190px; top: 166px; position: absolute; width: 220px"
                                        title="Selecione a empresa proprietária" value="#{Caminhao$CaminhaoCadastrar.proprietarioSelecionado.selectedObject}">
                                        <f:selectItems id="selectOneMenu1selectItems" value="#{Caminhao$CaminhaoCadastrar.proprietarios}"/>
                                    </ice:selectOneMenu>
                                    <!-- Mensagens -->
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="marcaCaminhao" id="msgMarca" infoClass="infoMessage"
                                        showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 432px; top: 0px; position: absolute; width: 262px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoModelo" id="msgModelo" infoClass="infoMessage"
                                        showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 432px; top: 24px; position: absolute; width: 262px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoAno" id="msgAno" infoClass="infoMessage"
                                        showSummary="true"
                                        style="color: red; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 432px; top: 48px; position: absolute; width: 430px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoCapacidadeMax" id="msgCapacidade"
                                        infoClass="infoMessage" showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 432px; top: 144px; position: absolute; width: 261px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="placaCaminhao" id="msgPlaca" infoClass="infoMessage"
                                        showSummary="true"
                                        style="color: red; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 432px; top: 72px; position: absolute; width: 262px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="chassiCaminhao" id="msgChassi" infoClass="infoMessage"
                                        showSummary="true"
                                        style="color: red; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 432px; top: 120px; position: absolute; width: 262px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoEixo" id="msgEixo" infoClass="infoMessage"
                                        showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 432px; top: 96px; position: absolute; width: 430px" warnClass="warnMessage"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="comboProprietario" id="msgComboProprietario"
                                        infoClass="infoMessage" showSummary="true"
                                        style="color: red; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; height: 20px; left: 432px; top: 168px; position: absolute; width: 261px" warnClass="warnMessage"/>
                                </ice:panelLayout>
                                <!-- Painel Opções -->
                                <ice:panelLayout id="painelOpcoes" layout="flow" style="height: 46px; left: 0px; top: 0px; position: absolute; width: 981px; -rave-layout: grid">
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoNovo_action}" alt="Novo" id="botaoNovo"
                                        image="/resources/botaoNovo.png" immediate="true"
                                        style="height: 45px; left: 168px; top: 0px; position: absolute; width: 64px" title="Novo" value="Novo"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoConsultar_action}" id="botaoConsultar"
                                        image="/resources/botaoConsultar.png" immediate="true" partialSubmit="true"
                                        style="height: 45px; left: 240px; top: 0px; position: absolute; width: 64px" title="Consultar" value="Consultar"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoAlterar_action}"
                                        binding="#{Caminhao$CaminhaoCadastrar.botaoAlterar}" id="botaoAlterar" image="/resources/botaoAlterar.png"
                                        immediate="true" style="height: 45px; left: 312px; top: 0px; position: absolute; width: 64px" title="Alterar" value="Alterar"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoImprimir_action}" id="botaoImprimir"
                                        image="/resources/botaoImprimir.png" immediate="true"
                                        style="height: 45px; left: 384px; top: 0px; position: absolute; width: 64px" title="Imprimir" value="Imprimir"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoCadastrar1_action}"
                                        binding="#{Caminhao$CaminhaoCadastrar.botaoCadastrar1}" id="botaoCadastrar1" image="/resources/botaoSalvar.png"
                                        style="height: 45px; left: 456px; top: 0px; position: absolute; width: 64px" title="Salvar/Cadastrar" value="Cadastrar"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoLimpar_action}"
                                        binding="#{Caminhao$CaminhaoCadastrar.botaoLimpar}" id="botaoLimpar" image="/resources/botaoLimpar.png" immediate="true"
                                        style="height: 45px; left: 528px; top: 0px; position: absolute; width: 64px" title="Limpar Campos" value="Limpar"/>
                                    <ice:commandButton action="#{Caminhao$CaminhaoCadastrar.botaoSair_action}" id="botaoSair" image="/resources/botaoSair.png"
                                        immediate="true" style="height: 45px; left: 912px; top: 0px; position: absolute; width: 64px" title="Sair" value="Sair"/>
                                </ice:panelLayout>
                            </ice:panelLayout>
                        </ice:panelGroup>
                    </ice:form>
                </ice:outputBody>
            </body>
        </ice:outputHtml>
    </f:view>
</jsp:root>
